#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPushButton>
#include <QTextEdit>
#include <QMessageBox>
#include <QKeyEvent>
#include <QList>
#include <QTime>
#include <QTimer>
#include "tred.h"


class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    int x,y,intensivnost;
    void keyPressEvent(QKeyEvent *event);
    void saveFile();
    void prinf(QGraphicsItem*);
    void circlePaint();
    int generatorXY(int axis);
    int n;

    ~MainWindow();
private:
    QGraphicsScene *scene;
    QGraphicsView * graphicsView;
    QPushButton *open;
    QTimer *tmr;
    tred *trd;
    QMessageBox msgBox;
private slots:
    void generationFigure();
};


#endif // MAINWINDOW_H
